<template>
	<view>
		<swiper class="swiper">
			<swiper-item>
				<view class="swiper-item">
					<!-- 跳过 -->
					<view class="btn" @tap="skip"> 
						<text>跳过</text>
					</view>
					<!-- 大背景图 -->
					<view class="view-image"></view>
					<!-- 底部背景图 -->
					<view class="footer-image">
						<view class="footer-text">
							<text>股市、基金</text><text>随时看</text>
						</view>
						<view class="footer_span">
							<view></view>
							<view></view>
							<view></view>
						</view>
					</view>
				</view>
			</swiper-item>
			<swiper-item>
				<view class="swiper-item">
					<!-- 跳过 -->
					<view class="btn" @tap="skip">
						<text>跳过</text>
					</view>
					<!-- 大背景图 -->
					<view class="view-image1"></view>
					<!-- 底部背景图 -->
					<view class="footer-image">
						<view class="footer-text">
							<text>股市、基金</text><text>随时看</text>
						</view>
						<view class="footer_span1">
							<view></view>
							<view></view>
							<view></view>
						</view>
					</view>
				</view>
			</swiper-item>
			<swiper-item>
				<view class="swiper-item">
					<!-- 跳过 -->
					<view class="btn" @tap="skip">
						<text>跳过</text>
					</view>
					<!-- 大背景图 -->
					<view class="view-image2">
						<!-- 开始体验 -->
						<view class="start" @tap="skip">
							<text>开始体验</text>
						</view>
					</view>
					<!-- 底部背景图 -->
					<view class="footer-image">
						<view class="footer-text">
							<text>股市、基金</text><text>随时看</text>
						</view>
						<view class="footer_span2">
							<view></view>
							<view></view>
							<view></view>
						</view>
					</view>
				</view>
			</swiper-item>
		</swiper>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			skip(){
				uni.switchTab({
					url:"/pages/home/home"
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.swiper{
		height: 100vh;
	}
	.swiper-item{
		height: 100vh;
	}
	.btn{
		width: 118rpx;
		height: 48rpx;
		border-radius: 20rpx;
		top: 120rpx;
		box-sizing: border-box;
		border: 1rpx solid #f2f2f2;
		text-align: center;
		position: absolute;
		right: 24rpx;
		color: #333333;
		font-size: 28rpx;
	}
	.view-image{
		width: 668rpx;
		height: 578rpx;
		margin: 0 auto ;
		margin-top: 302rpx;
		background-image: url(../../static/Guide/view-image.png);
		background-repeat: no-repeat;
	}
	.footer-image{
		width: 750rpx;
		height: 243rpx;
		background-image: url(../../static/Guide/hai.png);
		background-repeat: no-repeat;
		background-size: cover;
		margin-top: 212rpx;
		overflow: hidden;
		.footer-text{
			text-align: center;
			height: 50rpx;
			margin-top: 100rpx;
			color: white;
			text:nth-child(1){
				font-size: 32rpx;
			} 
			text:nth-child(2){
				font-size: 44rpx;
			}
		}
	}
	.footer_span{
		width: 96rpx;
		height: 16rpx;
		margin: 0 auto;
		margin-top: 50rpx;
		display: flex;
		view:nth-child(1){
			height: 16rpx;
			width: 44rpx;
			background-color: white;
			border-radius: 20rpx;
		}
		view:nth-child(2),view:nth-child(3){
			height: 16rpx;
			width: 16rpx;
			border-radius: 50%;
			margin-left: 10rpx;
			background-color: white;
		}
	}
	
	// 引导图片二
	.view-image1{
		width: 668rpx;
		height: 578rpx;
		margin: 0 auto ;
		margin-top: 302rpx;
		background-image: url(../../static/Guide/view-image1.png);
		background-repeat: no-repeat;
	}
	.footer_span1{
		width: 96rpx;
		height: 16rpx;
		margin: 0 auto;
		margin-top: 50rpx;
		display: flex;
		view:nth-child(2){
			height: 16rpx;
			width: 44rpx;
			background-color: white;
			border-radius: 20rpx;
			margin-left: 10rpx;
			margin-right: 10rpx;
		}
		view:nth-child(1),view:nth-child(3){
			height: 16rpx;
			width: 16rpx;
			border-radius: 50%;
			
			background-color: white;
		}
	}
	
	// 引导图片三
	.view-image2{
		width: 668rpx;
		height: 578rpx;
		margin: 0 auto ;
		margin-top: 302rpx;
		background-image: url(../../static/Guide/view-image2.png);
		background-repeat: no-repeat;
		overflow: hidden;
	}
	.footer_span2{
		width: 96rpx;
		height: 16rpx;
		margin: 0 auto;
		margin-top: 50rpx;
		display: flex;
		view:nth-child(3){
			height: 16rpx;
			width: 44rpx;
			background-color: white;
			border-radius: 20rpx;
		}
		view:nth-child(1),view:nth-child(2){
			height: 16rpx;
			width: 16rpx;
			border-radius: 50%;
			margin-right: 10rpx;
			background-color: white;
		}
	}
	
	// 开始体验
	.start{
		height: 88rpx;
		width: 330rpx;
		border-radius: 20rpx;
		background-color: #709fff;
		text-align: center;
		line-height: 88rpx;
		color: #FFFFFF;
		left: 0;
		right: 0;
		top: 950rpx;
		margin: auto;
		position: absolute;
	}
</style>
